package com.zm.demo.shadingsphere;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zoum
 * @create 2019/12/20 16:59
 */
@RequestMapping("/user")
@RestController
public class UserController {

    @Autowired
    UserMapper userDAO;

    @RequestMapping("/add")
    public int addUser(UserPO userPO){
        return userDAO.inserUser(userPO);
    }

    @RequestMapping("/selectT")
    public List<UserPO> selectT(){
        return userDAO.selectT();
    }
}
